freopen("duel.in","r",stdin)
freopen("duel.out","w",stdout)
fclose(stdin)
fclose(stdout)
